package com.ruoyi.mes.production.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 产品工艺用料对象 smes_product_tech_material
 *
 * @author simpsense
 * @date 2020-12-07
 */
public class SmesProductTechMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长列 */
    private Long rowId;

    /** 工艺用料编号 */
    private String productTechMaterialNo;

    /** 工艺明细号 */
    private Long productTechDetailId;

    /** 原料编号 */
    @Excel(name = "原料编号")
    private String materialNo;
    @Excel(name = "原料名称")
    private String materialName;
    @Excel(name = "原料规格")
    private String materialSpec;

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getMaterialSpec() {
        return materialSpec;
    }

    public void setMaterialSpec(String materialSpec) {
        this.materialSpec = materialSpec;
    }

    public String getMaterialCategoryName() {
        return materialCategoryName;
    }

    public void setMaterialCategoryName(String materialCategoryName) {
        this.materialCategoryName = materialCategoryName;
    }

    @Excel(name = "原料类别")
    private String materialCategoryName;
    /** 对于重量 */
    @Excel(name = "对应重量")
    private BigDecimal weight;

    /** 是否有效 */
    @Excel(name = "是否有效")
    private String deleteFlag;

    public void setRowId(Long rowId)
    {
        this.rowId = rowId;
    }

    public Long getRowId()
    {
        return rowId;
    }
    public void setProductTechMaterialNo(String productTechMaterialNo)
    {
        this.productTechMaterialNo = productTechMaterialNo;
    }

    public String getProductTechMaterialNo()
    {
        return productTechMaterialNo;
    }
    public void setProductTechDetailId(Long productTechDetailId)
    {
        this.productTechDetailId = productTechDetailId;
    }

    public Long getProductTechDetailId()
    {
        return productTechDetailId;
    }
    public void setMaterialNo(String materialNo)
    {
        this.materialNo = materialNo;
    }

    public String getMaterialNo()
    {
        return materialNo;
    }
    public void setWeight(BigDecimal weight)
    {
        this.weight = weight;
    }

    public BigDecimal getWeight()
    {
        return weight;
    }
    public void setDeleteFlag(String deleteFlag)
    {
        this.deleteFlag = deleteFlag;
    }

    public String getDeleteFlag()
    {
        return deleteFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("rowId", getRowId())
                .append("productTechMaterialNo", getProductTechMaterialNo())
                .append("productTechDetailId", getProductTechDetailId())
                .append("materialNo", getMaterialNo())
                .append("weight", getWeight())
                .append("deleteFlag", getDeleteFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}